package com.ffws.content.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ffws.base.typehandler.LongListTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @Author JC
 * @description 成员和分配地区的分配关系实体类
 * @Date 2023-8-29 18:39
 * @Version 1.0
 */
@Data
@ToString
@ApiModel("Allocated成员和分配地区的分配关系实体类")
@TableName(value = "allocated",autoResultMap = true)
public class Allocated implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签id(即所分配地区的id)",required = true)
    private Long tabId;

    @ApiModelProperty(value = "成员id的list集合(即被分配到该地区的成员们的id)",required = true)
    @TableField(typeHandler = LongListTypeHandler.class)
    private List<Long> personId;

}
